<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<link rel="stylesheet" href="${ctx}/page/include/css/myShoppingCart.css" />
<div class="panel panel-default">
	  	<div class="panel-heading">
	    	我的购物车
	    	<div id="edit" class="pull-right">
	    		<c:if test="${tempCart.items.size() gt 0}">
	    			<a href="${ctx}/shop/shoppingCart">编辑</a>
	    		</c:if>
	    	</div>
	  	</div>
	  	<div id="cartItemList" class="panel-body">
		  	<c:if test="${tempCart.items.size() gt 0}">
		  		<c:forEach items="${tempCart.items}" var="tempCartItem">
					<div class="media">
						<a class="media-left media-middle" href="${ctx}/product/${tempCartItem.productId}">
							<img class="avatar-md" src=" ${tempCartItem.smallImage}" >
						</a>
						<div class="media-body media-middle">
							 <a style="color: #333333" href="${ctx}/product/${tempCartItem.productId}" class="productName">
							 	${tempCartItem.productName}
							 	&nbsp
								 <c:if test="${tempCartItem.skuValue1 ne '默认'}">
								 	${tempCartItem.skuValue1}${tempCartItem.skuValue2}
								 	&nbsp
								 </c:if>
							 	(${tempCartItem.counts})
							 </a>
						</div>
					</div>
				</c:forEach>
			</c:if>
			<c:if test="${tempCart.items.size() eq 0}">
	  			空空如也
  			</c:if>
		</div>
		<div class="panel-footer">
			共<strong id="cartTotalCounts">${tempCart.counts}</strong>件商品
			<span class="pull-right">总金额：<strong id="cartTotalValue" style="color: #c61822">&yen<fmt:formatNumber type="number" value="${tempCart.value}" pattern="0.00" maxFractionDigits="2"/></strong></span>
		</div>
</div>
